//
//  RCChoiceFileHandler.h
//  Choice
//
//  Created by Rhys Cox on 31/08/2007.
//  Copyright 2007 Rhys Cox. All rights reserved.
//

#import <Cocoa/Cocoa.h>


@interface RCChoiceFileHandler : NSObject {
	NSOpenPanel *oPanel;
	NSString *ResultsPath;
}

- (int)loadTest; //Shows open dialog for opening a test file
- (NSArray*)getTestQA; //Gets questions and answers from test plist
- (NSArray*)getTestInfo; //Gets creation details from test plist
- (NSMutableArray*)getAnswers:(NSString*)path; //Creates an array of answer pairs for listbox initialisation
- (int)getTotalRightAnswers:(NSString*)path;
- (int)getTotalWrongAnswers:(NSString*)path;
- (NSString*)getResultPath;
- (BOOL)saveResults:(NSArray*)rightAnswers wrongAnswers:(NSArray*)wrongAnswers testInfo:(NSArray*)testInfo;
		//Saves results to plist file
@end
